<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>news index</title>
</head>
<body>
<h1>{{title}}</h1>
<div class="news-view view">

    {% for item in list %}
    <div class="item">
        <a href="{{ item.url }}">{{ item.title }}</a>
        {{ helper.relativeTime(item.time)}}
    </div>
    {% endfor %}
</div>

<div>
    <ul>
        <li><a href="/posts/" target="_blank">posts/index</a></li>
        <li><a href="/posts/new" target="_blank">new_post</a></li>
        <li><a href="/posts/1" target="_blank">/posts/:id</a></li>
        <li><a href="/posts/1/edit" target="_blank">/posts/:id/edit</a></li>
        <li><a href=""> POST /posts</a></li>
        <li><a href="">PUT /posts/:id</a></li>
        <li><a href="">DELETE /posts/:id</a></li>
    </ul>

</div>

</body>
</html>